package complex.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {

	@RequestMapping("hello")
	public ModelAndView doHello(@RequestParam("myName") String name) {
		Map<String, Object> model = new HashMap<>();
		model.put("modelName", name);
		return new ModelAndView("hello", model);
	}

}
